package com.example.demo.client;

import com.example.demo.entity.Test;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * 声明Mybatis-demo2服务模块接口
 */
@FeignClient(value = "mybatis-demo2",fallback = Demo2ClientHystric.class)
public interface Demo2Client {

    @GetMapping(value = "/demo/list")
    List<Test> list();

    @PostMapping(value = "/demo/save")
    int save();
}
